{extend name="base" /}

{block name="title"}提现列表{/block}

{block name="main"}
	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>提现列表 <small>萌宝联盟</small></h1>
			<ol class="breadcrumb">
				<li><a href="/shuashuale"><i class="fa fa-home"></i> 首页</a></li>
				<li><a href="/shuashuale/appointment"> 交易管理</a></li>
				<li class="active">提现列表</li>
			</ol>
		</section>

		<!-- Main content -->
		<section class="content container-fluid">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">提现列表</h3>
				</div>
				<!-- /.box-header -->
				<div class="box-body table-responsive no-padding">
					<table class="table table-bordered">
						<tr>
							<th>编号</th>
							<th>提现用户</th>
							<th>打款用户</th>
							<th>打款真实姓名</th>
							<th>打款用户云账号</th>
							<th>提现金额</th>
							<th>创建时间</th>
							<th>状态</th>
							<th>操作</th>
						</tr>
						{volist name='help_gets' id='help_get'}
						<tr>
							<td>{$help_get.help_get_id}</td>
							<td>{$help_get.username}</td>
							<td>{$help_get.p_username}</td>
							<td>{$help_get.p_realname}</td>
							<td>{$help_get.p_bank_code}</td>
							<td>{$help_get.money}</td>
							<td>{$help_get.create_time}</td>
							<td>{$help_get.status}</td>
							<td>
								{switch name="help_get->getData('status')"}
									{case value="2"}
										{eq name="help_get->getData('user_id')" value="1"}
										<a class="btn btn-success btn-xs btn-flat" href="/shuashuale/withdraw/firstConfirmHelpGet?help_get_id={$help_get.help_get_id}" onClick="return confirm('是否已经收款？')">确认收款</a>
										<a class="btn btn-danger btn-xs btn-flat" href="/shuashuale/withdraw/notFirstConfirmHelpGet?help_get_id={$help_get.help_get_id}" onClick="return confirm('是否未到收款？')">未收款</a>
										{/eq}
									{/case}
								{/switch}
								<!--<a class="btn btn-danger btn-xs btn-flat" href="/shuashuale/?help_get_id={$help_get.help_get_id}">删除</a>-->
							</td>
						</tr>
						{/volist}
					</table>
				</div>
				<!-- /.box-body -->
				<div class="box-footer clearfix">
					{$help_gets -> render()}
				</div>
			</div>
		</section>
		<!-- /.content -->
	</div>
	<!-- /.content-wrapper -->
{/block}